{* ÜÖÄ *}
	<form id="parameter_config_form_{$class.class_id}" onsubmit="return false;" />
		<input type="hidden" name="class_id" value="{$class.class_id}" />
		<input type="hidden" name="parameter" value="1" />
		{if "" != $error}
		<p class="error">
			{$error}
		</p>
		{/if}

<pre>
{$classConfig.parameter|@print_r:true}		
</pre>
		
		<table id="parameter_config_{$class.class_id}" class="tableList" cellspacing="0" cellpadding="2" width="100%" >
			<thead>
				<tr>
					<th><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/database.png" /> </th>
					<th>Bezeichnung</th>
					<th>Feldname</th>
					<th>Feldtyp</th>
{*					
					<th>Feldlänge</th>
*}
					<th>Formtyp</th>
					<th>&nbsp;</th>
					<th>&nbsp;</th>
				</tr>
			</thead>
			<tbody>
				{foreach name="clsloop" from=$classConfig.parameter key="key" item="col"}
					{if "id" == $col.label}
						{assign var="disabled" value="disabled='disabled'"}
					{else}
						{assign var="disabled" value=""}
					{/if}					
					
					{if $bgcolor == ""}
						{assign var="bgcolor" value="background:#ddd;"}					
					{else}
						{assign var="bgcolor" value=""}					
					{/if}
					<tr style="{$bgcolor}">
						<td>{$smarty.foreach.clsloop.iteration}</th>
						<td><input type="text" name="fieldlabel[]" value="{$col.label}" {$disabled}  /></td>
						<td>
							<input type="text" {if "" != $key}disabled="disabled"{/if} name="fieldname[]" value="{if !is_numeric($key)}{$key}{/if}" />
							<input type="hidden" name="oldfieldname[]" value="{if !is_numeric($key)}{$key}{/if}" />
						</td>
						<td>
							<select size="1" style="width:80px;" name="fieldtype[]" {$disabled}>
							{foreach from=$db_fieldtypes key="fieldtype" item="foo"}
								<option value="{$fieldtype}" {if $fieldtype == $col.type}selected="selected"{/if}>{$fieldtype}</option>
							{/foreach}
							</select>
						</td>

						<td>
							<select size="1" style="width:100px;" name="formtype[]" {$disabled}>
							{foreach from=$formtypes item="formtype"}
								<option value="{$formtype}" {if $formtype == $col.formtype}selected="selected"{/if}>{$formtype}</option>
							{/foreach}
							</select>
						</td>		
						<td><a href="javascript:void(0);">
							<img src="{$CMS_LIBRARY_WEB}famfamfam/icons/pencil.png" border="0" alt="Feld bearbeiten" onclick="{strip}{literal}
							xajax.request(
							{
								ccdsclass:'ccdsClassEditor',
								ccdsfun: 'ClassEditorClassConfigField'
							}
							,
							{
								parameters: [
									{{/literal}
										type:'parameter',
										fieldname:'{$key}',class_id:{$class.class_id}
									{literal}}
								]
							}
							);{/literal}{/strip}" /></a>
						</td>
						<td><a href="javascript:void(0);" onclick="{strip}{literal}foo=this;
	
$('<div />').xWindow('confirm',{title:'logout',content:'Wollen Sie die Zeile wirklich löschen?'}, function(){
	{/literal}
	index = foo.parentNode.parentNode.rowIndex;
	xajax.$('parameter_config_{$class.class_id}').deleteRow(index);
	{literal}
});
{/literal}{/strip}" title="Zeile löschen">
							<img src="{$CMS_LIBRARY_WEB}famfamfam/icons/cross.png" border="0" alt="Feld löschen" /></a>
						</td>
					</tr>
				{/foreach}
			</tbody>
		</table>					
					<input type="button" value="Feld hinzufügen" class="add" onclick="{strip}{literal}
	
			xajax.request(
			{
				ccdsclass:'ccdsClassEditor',
				ccdsfun: 'ClassEditorClassConfigAddRow'
			}
			,
			{
				parameters: [
					{/literal}
						xajax.getFormValues('parameter_config_form_{$class.class_id}',true)
					{literal}
				]
			}
			);
					
					{/literal}{/strip}">
	<input type="button" value="Speichern" class="save" onclick="{strip}{literal}
	
	$('<div />').xWindow('confirm',{title:'Speichern',content:'Wollen Sie die Änderungen speichern?'}, function(){
		  xajax.request(
		  {
		  		ccdsclass:'ccdsClassEditor',
		      ccdsfun: 'ClassEditorClassParameterConfigSave'
		  }
		  , 
		  {
		      parameters: [
		     	{/literal}
		      	xajax.getFormValues('parameter_config_form_{$class.class_id}',true)
		     	{literal}
		     ]
		  }
		  ); return true; 		
		});				
					
					{/literal}{/strip}"></td>
	</form>
		